POV-Ray : Newsgroups : povray.binaries.images : approximating arial perspective with fog : Re: approximating arial perspective with fog Server Time
9 Aug 2024 01:24:02 EDT (-0400)
  Re: approximating arial perspective with fog  
From: Abe
Date: 1 Apr 2005 20:14:09
Message: <424df1e1$1@news.povray.org>
Thomas de Groot wrote:
> Could we see a little piece of code, pleeeaaase??? ;-)

Well, there's not much to see. The operative part goes something like this:

#declare NearFogColor = <0,.1,1>; //Blueish color
#declare FarFogColor = <.9,.9,.9>; //Light gray horizon color

//Near fog
fog{distance 50 color rgb NearFogColor}

//Distant fog
fog{distance 80 color rgb FarFogColor-NearFogColor}

This would of course be tweaked to suit the scene.

Abe


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.